#include "BallFeederBrushOff.h"
#include "../CommandBase.h"
#include "WPILib.h"

BallFeederBrushOff::BallFeederBrushOff() {
	// Use requires() here to declare subsystem dependencies
	Requires(ballFeeder);
	SetTimeout(0.1);
}

// Called just before this Command runs the first time
void BallFeederBrushOff::Initialize() {
}

// Called repeatedly when this Command is scheduled to run
void BallFeederBrushOff::Execute() {
	ballFeeder->setBrushOff();
	oi->setBallFeederStatus(false);
}

// Make this return true when this Command no longer needs to run execute()
bool BallFeederBrushOff::IsFinished() {
	return IsTimedOut();
}

// Called once after isFinished returns true
void BallFeederBrushOff::End() {
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void BallFeederBrushOff::Interrupted() {
}
